package ${classInfo.packageName}.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
<#if classInfo.classImport?exists && classInfo.classImport?size gt 0>
    <#list classInfo.classImport as importItem >
import ${importItem};
    </#list>
</#if>

/**
 * ${classInfo.classComment}.
 *
 * @author ${classInfo.author}
 * @date ${.now?string('yyyy-MM-dd HH:mm:ss')}
 */
@Data
@Accessors(chain = true)
@KeySequence("${classInfo.tableName?upper_case}_SEQ")
public class ${classInfo.className} implements Serializable {

    private static final long serialVersionUID = 1L;

<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
    <#list classInfo.fieldList as fieldItem >
    /**
     * ${fieldItem.fieldComment}.
     */
    <#if fieldItem.primaryKey>
    @TableId
    </#if>
    private ${fieldItem.fieldClass.code} ${fieldItem.fieldName};

    </#list>
</#if>
}
